package com.sright.bcard.common.service.share.exception.base;

import com.sright.bcard.common.service.share.exception.ServiceErrorException;
import com.sright.bcard.common.service.share.exception.code.ErrorCode;

/**
 * 数据库异常
 */
public class DaoErrorException extends ServiceErrorException {

    public DaoErrorException(String message, Throwable cause) {
        super(message, cause);
        setCode(ErrorCode.DB_ERROR.code());
    }

    public DaoErrorException(String message, String code) {
        super(message);
        setCode(code);
    }
}
